import request from '@/utils/request';


export function listForAgent(data: any) {
  return request({
    url: '/api/v1/render/agent/list',
    method: 'post',
    data: data
  });
}

export function saveForAgent(data: any) {
  return request({
    url: '/api/v1/render/agent/save',
    method: 'post',
    data: data
  });
}

export function deleteForAgent(data: any) {
  return request({
    url: '/api/v1/render/agent/delete',
    method: 'post',
    data: data
  });
}

export function limitForAgent(data: any) {
  return request({
    url: '/api/v1/render/agent/limit',
    method: 'post',
    data: data
  });
}

/**
 * 显卡授权列表
 */
export function listForUserAgent(data: any) {
  return request({
    url: '/api/v1/user/agent/list',
    method: 'post',
    data: data
  });
}

/**
 * 显卡授权信息保持
 */
export function saveForUserAgent(data: any) {
  return request({
    url: '/api/v1/user/agent/save',
    method: 'post',
    data: data
  });
}

export function saveForAgentRelay(data: any) {
  return request({
    url: '/api/v1/render/agent/relay/save',
    method: 'post',
    data: data
  });
}

export function synForAgentRelay(data: any) {
  return request({
    url: '/api/v1/render/agent/relay/syn',
    method: 'post',
    data: data
  });
}

export function synForAgentGPU(data: any) {
  return request({
    url: '/api/v1/render/agent/gpu/syn',
    method: 'post',
    data: data
  });
}

export function saveForAgentSignalling(data: any) {
  return request({
    url: '/api/v1/render/agent/signalling/save',
    method: 'post',
    data: data
  });
}


export function synForAgentSignalling(data: any) {
  return request({
    url: '/api/v1/render/agent/signalling/syn',
    method: 'post',
    data: data
  });
}

export function pagesForRenderLog(data: any){
  return request({
	url: '/api/v1/render/log/pages',
	method: 'get',
	params:data
  });
}
